<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
	<script type="text/javascript" src="/layui/layui.js"></script>
	<script type="text/javascript" src="/js/addcommunity.js"></script>
	
	<body>
		<form class="layui-form" action="">
		  <div class="layui-form-item">
		    <label class="layui-form-label">社团名称</label>
		    <div class="layui-input-inline">
		      <input type="text" name="a_name" id="a_name" required  lay-verify="required" placeholder="请输入社团名称" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">社长学号</label>
		    <div class="layui-input-inline">
		      <input type="text" name="username" id="username" required lay-verify="required" placeholder="请输入社长学号" autocomplete="off" class="layui-input">
		    </div>
		    <div class="layui-form-mid layui-word-aux">12位</div>
		  </div>
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">创建时间</label>
		    <div class="layui-input-inline">
		      <input type="text" name="creationtime" id="creationtime" readonly="readonly" required lay-verify="required"  autocomplete="off" class="layui-input">
		    </div>
		  </div>
			<div class="layui-form-item">
				<label class="layui-form-label">社团人数</label>
				<div class="layui-input-inline">
					<input type="radio" name="number" value="1" title="创建时默认为1" checked />
				</div>
			</div>
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">图片地址</label>
		    <div class="layui-input-inline">
		      <input type="text" name="a_url" id="a_url"  required lay-verify="required"  autocomplete="off" class="layui-input">
		    </div>
		  </div>
			<div class="layui-form-item">
				<label class="layui-form-label">社团状态</label>
				<div class="layui-input-inline">
					<input type="text" name="examine" id="examine" placeholder="默认为1" required lay-verify="required"  autocomplete="off" class="layui-input">
				</div>
			</div>
		  
		  
		 
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		  </div>
		</form>
		 
		<script>
			layui.use('laydate', function(){
				var laydate = layui.laydate;

				//执行一个laydate实例
				laydate.render({
					elem: '#creationtime',
					value: new Date() ,
					done: function(value, date){}
				});
			});

			$("#examine").val("1");
		//Demo
		layui.use(['form','laydate'], function(){
		  	var form = layui.form;
			var laydate = layui.laydate;

			//执行一个laydate实例--设置时间格式
			laydate.render({
				elem: '#creationtime',
				value: new Date() ,
				done: function(value, date){}
			})
		  //监听提交
		  form.on('submit(formDemo)', function(data){
		    layer.msg(JSON.stringify(data.field));
		    return false;
			  //执行一个laydate实例

		  });
		});
		</script>
	</body>
</html>
